package com.gskorupa.univermon;

import java.io.IOException;
import javax.servlet.http.*;
//import com.google.appengine.api.users.User;
//import com.google.appengine.api.users.UserService;
//import com.google.appengine.api.users.UserServiceFactory;

public class MainServlet extends HttpServlet {
    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
              throws IOException {
        /*
        UserService userService = UserServiceFactory.getUserService();
        User user = userService.getCurrentUser();

        if (user != null) {
            resp.setContentType("text/plain");
            resp.getWriter().println("Hello, " + user.getNickname());
        } else {
            resp.sendRedirect(userService.createLoginURL(req.getRequestURI()));
        }
                */
        resp.setContentType("text/html");
        resp.getWriter().println("<html><body><b>UniverMon 1.0</b><br>");
        resp.getWriter().println("Client must be registered.</body></html>");
    }
}
